﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter13.Code02.CardLib
{
    public class Demo
    {
        public static void Begin()
        {
            Deck deck = new Deck();
            try
            {
                Card myCard = deck.GetCard(60);
            }
            catch (CardOutOfRangeExecption e)
            {
                Console.WriteLine(e.Message);
                Console.WriteLine(e.DeckContents[0]);
            }
            Console.ReadLine();
        }
    }
}
